/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PoJo;

import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class TraHangPOJO 
{
    private String MaTraHang;
    private String MaOrder;
    private String MaSanPham;
    private Date ThoiGianTra;
    private int SoLuongTra;
    private String LyDo;
    
    //phuong thuc khoi tao

    public TraHangPOJO(String MaTraHang, String MaOrder, String MaSanPham, Date ThoiGianTra, int SoLuongTra, String LyDo) 
    {
        this.MaTraHang = MaTraHang;
        this.MaOrder = MaOrder;
        this.MaSanPham = MaSanPham;
        this.ThoiGianTra = ThoiGianTra;
        this.SoLuongTra = SoLuongTra;
        this.LyDo = LyDo;
    }
    
    public TraHangPOJO() 
    {
        this.MaTraHang = null;
        this.MaOrder = null;
        this.MaSanPham = null;
        this.ThoiGianTra = new Date();
        this.SoLuongTra = 0;
        this.LyDo = null;
    }
    
    public TraHangPOJO(TraHangPOJO TH) 
    {
        this.MaTraHang = TH.MaTraHang;
        this.MaOrder = TH.MaOrder;
        this.MaSanPham = TH.MaSanPham;
        this.ThoiGianTra = TH.ThoiGianTra;
        this.SoLuongTra = TH.SoLuongTra;
        this.LyDo = TH.LyDo;
    }
    
    // phuong thuc get set

    public String getLyDo() {
        return LyDo;
    }

    public void setLyDo(String LyDo) {
        this.LyDo = LyDo;
    }

    public String getMaOrder() {
        return MaOrder;
    }

    public void setMaOrder(String MaOrder) {
        this.MaOrder = MaOrder;
    }

    public String getMaSanPham() {
        return MaSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.MaSanPham = MaSanPham;
    }

    public String getMaTraHang() {
        return MaTraHang;
    }

    public void setMaTraHang(String MaTraHang) {
        this.MaTraHang = MaTraHang;
    }

    public int getSoLuongTra() {
        return SoLuongTra;
    }

    public void setSoLuongTra(int SoLuongTra) {
        this.SoLuongTra = SoLuongTra;
    }

    public Date getThoiGianTra() {
        return ThoiGianTra;
    }

    public void setThoiGianTra(Date ThoiGianTra) {
        this.ThoiGianTra = ThoiGianTra;
    }
    
    
    
    
}
